def seriesSum(num):
    sum = 0
    for i in range(1,num+1):
        sum += i / (i+1)
    return sum

print(format("num",">6s"),format("m(i)",">10s"))

for i in range(1,21):
    print(format(i, ">6d"), format(seriesSum(i), ">10.4f"))